export const showToast = (title, icon = 'none', mask = false, delay = 0) => {
	if (delay) {
		setTimeout(() => {
			uni.showToast({
				title,
				icon,
				mask
			});
		}, delay);
	} else {
		uni.showToast({
			title,
			icon,
			mask
		});
	}
}

export const showLoading = (title = '') => {
	uni.showLoading({
		'title': title,
		'mask': true
	});
}

export const os = () => {
	return uni.getSystemInfoSync().osName;
}

export const isIos = () => {
	return os() == 'ios' || os() == 'mac';
}